package com.oscar.ehome.utils.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

/**
 * 创建表
 */
public class CreateDataBase extends SQLiteOpenHelper {

    String znw_upload_1 = "create table fileDownload("
            + "_id integer primary key autoincrement," +
            "title,imgdata,size,filename,ids,learnType)";


    public CreateDataBase(Context context, String name, int version) {
        super(context, name, null, version);
        // TODO Auto-generated constructor stub
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        // TODO Auto-generated method stub
		db.execSQL(znw_upload_1);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        // TODO Auto-generated method stub
        Log.d("CreateDataBase", "版本发生变化，更新数据库");
    }

}
